<html>
<head><title>VNA</title></head>

<body>

<br/>
<object classid='Button' id='button_connect_to_vna' width='100' height='30'>
	<param name='label' value='Connect To VNA'/>
	<param name='action' value='vna.connect_to_vna'/>
	<param name='toggle' value='True'/>
</object>
<p>Model:</p>
<object classid='ChoiceButton' id='choice_vna_model' width='100'>
	<param name='choices' value='[HP8510C, HP8720]' />
</object>
<p>GPIB Adress:</p>
<object classid='TextBox' id='text_gpib_address' width='40'></object>
<p>GPIB Timeout:</p>
<object classid='TextBox' id='text_gpib_timeout' width='40'></object>


<br/>

<hr/>
<h3>Touchstone File IO</h3>
<object classid='FileDialog' id='file_dialog' width='100%'>
</object>
<br/>
<object classid='TextBox' id='file_dialog_result' width='100%'>
</object>
<br/>
<object classid='Button' width='100'>
    <param name='action' value='vna.open_file'/>
    <param name='label' value='Open'/>
</object>

<object classid='Button' width='100'>
    <param name='action' value='vna.save_file'/>
    <param name='label' value='Save'/>
</object>
<object classid='Button' width='100'>
    <param name='action' value='vna.clear_file_dialog'/>
    <param name='label' value='Clear'/>
</object>

<hr/>
<table width='50%' align='center'>
<tr>
	<td>
	<object classid='Button' id='button_s11' width='70'>
		<param name='label' value='S11'/>
		<param name='action' value='vna.get_s11'/>
	</object>
	</td>
	<td>
	<object classid='Button' id='button_s12' width='70'>
		<param name='label' value='S12'/>
		<param name='action' value='vna.get_s12'/>
	</object>
	</td>
	<td >
	<object classid='Button' id='button_two_port' width='200'>
		<param name='label' value='Full Two Port'/>
		<param name='action' value='vna.get_two_port'/>
	</object>
	</td>
	<td>
	<object classid='Button' id='button_switch_terms' width='150'>
		<param name='label' value='Save Switch Terms'/>
		<param name='action' value='vna.get_switch_terms'/>
	</object>
	
	</td>
	
</tr>
<tr>
	<td>
	<object classid='Button' id='button_s21' width='70'>
		<param name='label' value='S21'/>
		<param name='action' value='vna.get_s21'/>
	</object>
	</td>
	<td>
	<object classid='Button' id='button_s22' width='70'>
		<param name='label' value='S22'/>
		<param name='action' value='vna.get_s22'/>
	</object>
	</td>

</tr>
</table>




<hr/>

<object classid='RadioButtonBox' id='radio_plot_format'>
    <param name='action' value='vna.change_plot_format'/>
    <param name='label' value='Plot Format'/>
    <param name='save' value='True'/>
    <param name='columns' value='3'/>
    <param name='choices' value='[ Magnitude[dB], Phase[deg], Smith Chart ]'/>
</object>


<table align = 'right'>
	<tr>
		<td>
		<object classid='Button' id='button_clear_plot' width='200'>
			<param name='label' value='Clear Plot'/>
			<param name='action' value='vna.clear_plot'/>
		</object>
		 </td>
	</tr>
	<tr>
		 <td>
		 <object classid='Button' id='button_update_plot' width='200'>
			<param name='label' value='Update Plot'/>
			<param name='action' value='vna.update_plot'/>
		</object>
		 </td>

	</tr>
</table>


<br/>
<object classid='MPLPlot' id='mpl_plot' width ='100%'>
</object>






<br/>
<object classid='FileDialog' id='file_dialog_forward_switch_terms' width='1'>
		<param name='title' value='Save Forward Switch Term'/>
</object>

<object classid='FileDialog' id='file_dialog_reverse_switch_terms' width='1'>
		<param name='title' value='Save Reverse Switch Term'/>
</object>
<object classid='ScriptLoader' width='1'>
	<param name='filename' value='vna'/>
</object>
<object classid='ParameterLoader' width='1'>
    <param name='filename' value='vna_defaults.txt'/>
</object>

</body>
</html>
